<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href="../ext-3.4.0/resources/css/ext-all.css" type="text/css" rel="stylesheet" />

<script language="javascript" src="../ext-3.4.0/adapter/ext/ext-base.js"></script>

<script language="javascript" src="../ext-3.4.0/ext-all.js" ></script>
<title>两按钮的面板</title>
<script language="javascript" >
     Ext.onReady(function(){
          var _window_login = new Ext.Window({
               title:"登陆",
               frame:true,
               width:250,
               height:150,
               layout:'form',
               labelWidth:50,
               plain:true,
               resizable:false,
               defaults:{xtype:'textfield',minwidth:100},
               bodyStyle:'padding:5px',
               buttonAlign:'center',
               closeAction:'hide',
               closable:true,
               minimizable:true,
               maximizable:true,
               items:[{fieldLabel:'帐 号'},{fieldLabel:'密 码'}],
               buttons:[{text:'确 定'},{text:'取 消'}],
               listeners:{}
          });
          
          _window_login.show();
          
     });
</script>
</head>

<body>
</body>
</html>
